package com.suyl.annotationdemo.model.entity;

import com.suyl.annotationdemo.core.annotation.Person;
import com.suyl.annotationdemo.core.validator.PersonValidator;
import lombok.*;

/**
 * @author : suyl
 * @version : v1.0.0
 * @date : 2020/3/20 15:02
 * @descr : 用户类
 */
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @Person(validator = PersonValidator.class)
    String name;

    String id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
